<?php

use Welcomescreen\Agavi\View;

class Backend_Visits_PreviewSuccessView extends View\BackendBaseView {
	
	/**
	 * @parameter  AgaviRequestDataHolder $rd
	 * @return     mixed
	 */
	public function executeHtml(AgaviRequestDataHolder $rd) {
		$this->setupHtml($rd, 'previewTemplate');
		
		$template = $this->getAttribute('template');
		
		$this->getContainer()->setAttribute('isEditing', true, 'org.welcomescreen');
		$this->getContainer()->setAttribute('templateName', $template->getName(), 'org.welcomescreen');
		$this->getLayer('content')->setTemplate(AgaviConfig::get('org.welcomescreen.system.template_dir') . '/' . $template->getFile());
	}
}

?>